<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">
    <title>Document</title>
</head>
<body>
<input id="openId" type="text" placeholder="输入登录id"/>
<button id="loading">登录</button>
</body>
<script src="../unis/jquery-1.8.3.min.js"></script>
<script src="../dist/index.min.js"></script>
<script src="../interface/interface.js"></script>
<script>
    $('#loading').on('click',function(){
    var openId = $('#openId').val();
    var opt = {
        url : 'http://mj.lcc.so/testlogin2',
        data : 'openid='+openId
    };
        window.getData(opt,function(data){
               if(data.status==1){
                   var url = window.location.href;
                   url = url.replace('loading','NewRoom');
                   window.location.href = url+'?mid='+openId ;
               }
        })
    })
</script>
</html>